package com.hxzy.research.service.research;

import com.hxzy.research.pojo.TblBranch;
import com.hxzy.research.pojo.TblUser;

public interface AddUserBranch {
    //添加分公司到branch表
    public void addBranch(TblBranch tblBranch)throws Exception;
    //通过名字查询到新添加的分公司的id
    public TblBranch findBranchidByName(String name)throws Exception;
    //执行user表添加
    public void addUser(TblUser tblUser)throws Exception;

    //通过userId查到要修改的信息用户
    public TblUser findUserByUserId(Integer userId)throws Exception;

    //执行修改--先修改user表
    public void updateUser(TblUser tblUser)throws Exception;
    //执行修改-再修改branch表
    public void updateBranch(TblBranch tblBranch) throws Exception;


    //执行删除-先删除user表
    public void deleteUser(Integer userId)throws Exception;

    //执行删除-再删除branch表-用user表的branchid来删除
    public void deleteBranch(Integer branchId)throws Exception;
}
